<?php

namespace App\Api\Models;


use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class QqAccount extends Model
{
    use HasFactory;
    protected $guarded = [];
    protected $table ='cmc_qq_accounts';


    public static function saveData($data,$where = [])
    {
        if (!empty($where) && is_array($where)){
            return self::query()->where($where)->update($data);
        }
        return self::query()->insertGetId($data);
    }



}
